.class Lcom/burstly/lib/component/AdaptorWrapper;
.super Ljava/lang/Object;
.source "AdaptorWrapper.java"

# interfaces
.implements Lcom/burstly/lib/component/IBurstlyAdaptor;
.implements Lcom/burstly/lib/component/IClickTracker;


# instance fields
.field private final mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

.field private final mFactory:Lcom/burstly/lib/feature/networks/IAdaptorFactory;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/IBurstlyAdaptor;Lcom/burstly/lib/feature/networks/IAdaptorFactory;)V
    .locals 0
    .parameter "adaptor"
    .parameter "factory"

    .prologue
    .line 48
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 49
    iput-object p1, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    .line 50
    iput-object p2, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mFactory:Lcom/burstly/lib/feature/networks/IAdaptorFactory;

    .line 51
    return-void
.end method


# virtual methods
.method public destroy()V
    .locals 1

    .prologue
    .line 61
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->destroy()V

    .line 62
    return-void
.end method

.method public endTransaction(Lcom/burstly/lib/component/IBurstlyAdaptor$TransactionCode;)V
    .locals 1
    .parameter "endCode"

    .prologue
    .line 131
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IBurstlyAdaptor;->endTransaction(Lcom/burstly/lib/component/IBurstlyAdaptor$TransactionCode;)V

    .line 132
    return-void
.end method

.method public endViewSession()V
    .locals 1

    .prologue
    .line 106
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->endViewSession()V

    .line 107
    return-void
.end method

.method public getAdType()Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;
    .locals 1

    .prologue
    .line 116
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->getAdType()Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    move-result-object v0

    return-object v0
.end method

.method public getNetworkName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 96
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->getNetworkName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewAd()Landroid/view/View;
    .locals 1

    .prologue
    .line 81
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->getNewAd()Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public getResponseHandler()Lcom/burstly/lib/component/ITrackClickResponseHandler;
    .locals 1

    .prologue
    .line 136
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    instance-of v0, v0, Lcom/burstly/lib/component/IClickTracker;

    if-eqz v0, :cond_0

    .line 137
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    check-cast v0, Lcom/burstly/lib/component/IClickTracker;

    invoke-interface {v0}, Lcom/burstly/lib/component/IClickTracker;->getResponseHandler()Lcom/burstly/lib/component/ITrackClickResponseHandler;

    move-result-object v0

    .line 139
    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public pause()V
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->pause()V

    .line 67
    return-void
.end method

.method public precacheAd()Landroid/view/View;
    .locals 1

    .prologue
    .line 86
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->precacheAd()Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public precacheInterstitialAd()V
    .locals 1

    .prologue
    .line 121
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->precacheInterstitialAd()V

    .line 122
    return-void
.end method

.method public resume()V
    .locals 1

    .prologue
    .line 76
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->resume()V

    .line 77
    return-void
.end method

.method public setAdaptorListener(Lcom/burstly/lib/component/IBurstlyAdaptorListener;)V
    .locals 1
    .parameter "listener"

    .prologue
    .line 91
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IBurstlyAdaptor;->setAdaptorListener(Lcom/burstly/lib/component/IBurstlyAdaptorListener;)V

    .line 92
    return-void
.end method

.method public showPrecachedInterstitialAd()V
    .locals 1

    .prologue
    .line 126
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->showPrecachedInterstitialAd()V

    .line 127
    return-void
.end method

.method public startTransaction(Ljava/util/Map;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .prologue
    .line 55
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mFactory:Lcom/burstly/lib/feature/networks/IAdaptorFactory;

    invoke-interface {v0, p1}, Lcom/burstly/lib/feature/networks/IAdaptorFactory;->initialize(Ljava/util/Map;)V

    .line 56
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IBurstlyAdaptor;->startTransaction(Ljava/util/Map;)V

    .line 57
    return-void
.end method

.method public startViewSession()V
    .locals 1

    .prologue
    .line 101
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->startViewSession()V

    .line 102
    return-void
.end method

.method public stop()V
    .locals 1

    .prologue
    .line 71
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->stop()V

    .line 72
    return-void
.end method

.method public supports(Ljava/lang/String;)Z
    .locals 1
    .parameter "action"

    .prologue
    .line 111
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorWrapper;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IBurstlyAdaptor;->supports(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method
